package com.itheima.sh.mapper;

import com.itheima.sh.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    //从数据库查到的数据封装到User对象中
    @Select("select * from tb_user where username=#{username}")
    User findUser(@Param("username")String username);
}
